package ar.com.quickMart.database;

import java.util.Date;
import java.util.List;

import ar.com.quickMart.logic.ConfirmedQuickMartList;

public interface PurchaseDao {
	
	public boolean addPurchase(int listId, Date date, float ImporteTotal);
	public Long getPurchaseId(long listId);
	public boolean removePurchase(int purchaseId);
	public ConfirmedQuickMartList getConfirmedQuickMartList(long listId);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartLists(String state);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartListsByUser(String state, long userId);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartListsByUser(String state, long userId, Date beginDate, Date endDate);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartLists(String state, int count);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartLists(String state, long branchId);
	public List<ConfirmedQuickMartList> getConfirmedQuickMartLists(String state,long branchId, int count);
	public boolean addPurchaseState(String description);
	public boolean removePurchaseState(int purchaseStateId);
	public boolean updatePurchaseState(long listId, String newState);
	public boolean updatePurchaseDate(long listId, Date date);

}
